<div class="mainright">	
    <h1>Thông tin chung</h1>
    <div class="toppage">
        <span class="left">
            <font class="number">(<?php echo $this->home_model->get_count_all_cat(); ?>)</font>
            Sản phẩm                      
        </span>
    </div>
    <div class="tableout">
        <div class="title1">
            <div class="column" style="width:5%;">STT</div>
            <div class="column" style="width:75%;">Chuyên mục</div>
            <div class="column" style="width:20%;">Tin tức</div>
        </div>

        <?php
            foreach ($cats as $k => $cat):
                $link_cat = base_url_admin("articles/index/" . $cat->id);
            if ($cat->id_parent == 0) {
        ?>
                <div class="linehome">
                    <div class="column" style="width:5%;"><?php echo $k; ?></div>
                    <div class="column" style="width:75%;"><h2><?php echo $cat->name; ?></h2></div>
                    <div class="column" style="width:20%;"><?php echo $this->home_model->get_count_cat($cat->id); ?></div>
                </div>
            <?php } else { ?>
                <div class="linesub">
                    <div class="column" style="width:5%;"><?php echo $k; ?></div>
                    <div class="column" style="width:75%;"><?php echo $cat->name; ?></div>
                    <div class="column" style="width:20%;"><?php echo $this->home_model->get_count_cat($cat->id); ?></div>

                </div>
            <?php } ?>
            <?php endforeach; ?>
    </div>
</div>